package cn.istartfinancial.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author: Nzp
 * @date: 2018/8/31 9:29
 * @description: 记录日志
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Documented
@Inherited
public @interface Log
{
    /**
     * 内容
     */
    String desc();

    ;

    /**
     * 类型 curd
     */
    LOG_TYPE type() default LOG_TYPE.ATHOR;

    public enum LOG_TYPE
    {
        ADD,
        UPDATE,
        DEL,
        SELECT,
        ATHOR
    }
}
